Document that gtk_widget_queue_draw_area is in widget coordinates
authorMatthias Clasen <mclasen@redhat.com>
Wed, 26 Jan 2011 23:19:35 +0000 (18:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 26 Jan 2011 23:20:51 +0000 (18:20 -0500)
gtk/gtkwidget.c

index 9ce1c8cdb229bd53d3f2aea57bddbc05f2754ecc..00343bfb5fbb2b8ba6662af146e5925b941b9620 100644 (file)
@@ -4503,7 +4503,13 @@ gtk_widget_queue_draw_region (GtkWidget      *widget,
  *
  * Convenience function that calls gtk_widget_queue_draw_region() on
  * the region created from the given coordinates.
- **/
+ *
+ * The region here is specified in widget coordinates.
+ * Widget coordinates are a bit odd; for historical reasons, they are
+ * defined as @widget->window coordinates for widgets that are not
+ * #GTK_NO_WINDOW widgets, and are relative to @widget->allocation.x,
+ * @widget->allocation.y for widgets that are #GTK_NO_WINDOW widgets.
+ */
 void
 gtk_widget_queue_draw_area (GtkWidget *widget,
                            gint       x,